//注册全局自定义组件
import Vue from 'vue'

const Coms = [
    {
        name: "MyTableColumnSet",
        component: () =>
        import ('./MyTableColumnSet')
    },
    {
        name: "MySwitch",
        component: () =>
        import ('./MySwitch')
    },
    {
        name: "MyRefresh",
        component: () =>
        import ('./MyRefresh')
    },
    {
        name: "MyPagination",
        component: () =>
        import ('./MyPagination')
    },
    {
        name: "MyTag",
        component: () =>
        import ('./MyTag')
    },
    {
        name: "MyTableTag",
        component: () =>
        import ('./MyTableTag')
    },
    {
        name: "MySidentify",
        component: () =>
        import ('./MySidentify')
    },
    {
        name: "MyUpImg",
        component: () =>
        import ('./MyUpImg')
    },
    {
        name: "MyUpMoreImg",
        component: () =>
        import ('./MyUpMoreImg')
    },
    {
        name: "MyUpVideo",
        component: () =>
        import ('./MyUpVideo')
    },
    {
        name: "MyLeftTreeRetract",
        component: () =>
        import ('./MyLeftTreeRetract')
    }
]

const vueComs = () => {
    Coms.forEach(item => {
        return Vue.component(item.name, item.component)
    })
}
export default vueComs
